<?php
class Core_Model_Notnull implements Core_Model_Mainable{
    
    private $action_redirect;
    
    public function main(array $variables = null) {
        foreach ($variables as $key => $value){
            if(is_array($value)){
                $variables[$key] = $this->main($value);
            }
            else {
		$this->not_null_checkout($variables[$key]);
            }
	}
    }
    
    private function not_null_checkout($key){
        if(is_null($key) && (trim($key) == '')){
            $this->action_redirect = new Core_Controller_Hackredirect;
            $this->action_redirect->main($variables);
        }
    }

}
